package service;

import dao.UserDao;
import dao.UserDaoMysqlImpl;

public class UserServiceImpl implements UserService {
    // 通过修改业务层的代码，来对用户的需求进行变更。这明显是不合理的
    // Spring中的控制翻转解决了这个问题
    private UserDao userDao = new UserDaoMysqlImpl();
//    private UserDao userDao = new UserDao();

    public void getUser() {
        userDao.getUser();
    }
}
